import base from '@/api/baseurl';
import request from '@/utils/request'


export function fetchDifferenceValue(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/queryDifferenceValue',
    method: 'get',
    params: query
  })
}



export function addDifferenceValue(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/addDifferenceValue',
    method: 'post',
    data
  })
}


export function updateDifferenceValue(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/updateDifferenceValue',
    method: 'post',
    data
  })
}

//单行删除
export function deleteDifferenceValue(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/delDifferenceValue',
    method: 'get',
    params: query
  })
}


// 原曲线类型
export function bCArithmeticMeanQueryCurveType(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/queryCurveType',
    method: 'get',
    params: query
  })
}

// 原曲线
export function bCArithmeticMeanQueryCurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/queryCurve',
    method: 'get',
    params: query
  })
}

// 调整类型
export function bCArithmeticMeanQueryADJtype(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/queryADJtype',
    method: 'get',
    params: query
  })
}


// 调整单位
export function bCArithmeticMeanQueryADJcp(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/queryADJcp',
    method: 'get',
    params: query
  })
}


// 期限下拉框  type, cv_code , s_date ,e_date
export function bCArithmeticMeanQueryTerm(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCArithmeticMean/queryTerm',
    method: 'get',
    params: query
  })
}

